/* -------------------------------------- 

     Cherrypy webapp skeleton frontend

     License: LGPL
     Authors: saaj (mail@saaj.me)

   -------------------------------------- */

/*
#asset(qx/icon/${qx.icontheme}/16/apps/utilities-text-editor.png) 
*/
   
/**
 * Note editor view
 */
qx.Class.define("webapp.view.NoteEditor", {

	extend : webapp.view.AbstractEditor,

  members : {

  	_getFormHeading : function()
  	{
      return {
        caption : this.tr("New note"),
        icon    : "icon/16/apps/utilities-text-editor.png"
      };
  	},
    
  	_createForm : function()
  	{
      this.base(arguments);
      
      var name = new qx.ui.form.TextField();
      name.setRequired(true);
      this._form.add(name, this.tr("Name"), null, "name");
      
      var comment = new qx.ui.form.TextArea();
      this._form.add(comment, this.tr("Comment"), null, "comment");
  	}
    
  }

});